< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03030202.xhp

(section: minute) (bookmark: bm_id3155419)
Minute function

Minute 関数

Minute Function [Runtime]
Minute 関数 [実行時](hd_id3155419.1)

Returns the minute of the hour that corresponds to the serial time value that is generated by the TimeSerial or the TimeValue function.
TimeSerial ないし TimeValue 関数による時刻データのシリアル変換値を基に、該当時刻の分を示す数値を返します。(par_id3156344.2)

(/section: minute)

Syntax:
構文:(hd_id3154758.3)

Minute (Number)
Minute (Number)(par_id3149656.4)

Return value:
戻り値:(hd_id3148798.5)

Integer
整数(par_id3150449.6)

Parameters:
パラメータ:(hd_id3153193.7)

Number: Numeric expression that contains the serial time value that is used to return the minute value.
Number: 分情報を返すために使われる時刻データのシリアル変換値を示す数値表式。(par_id3153969.8)

This function is the opposite of the TimeSerial function. It returns the minute of the serial time value that is generated by the TimeSerial or the TimeValue function. For example, the expression:
この関数は、TimeSerial 関数と逆方向の機能を担っています。この場合の戻り値としては、時刻データを TimeSerialTimeValue 関数で変換したシリアル値を基に、該当時刻の分を示す整数値が返されます。こうした点は、下記のコードを実行してみると分かりやすいでしょう。(par_id3150869.9)

Print Minute(TimeSerial(12,30,41))
Print Minute(TimeSerial(12,30,41))(par_id3149262.10)

returns the value 30.
この場合の戻り値は 30 となります。(par_id3148576.11)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3150010.12)

Sub ExampleMinute
Sub ExampleMinute(par_id3159154.13)

MsgBox "The current minute is "& Minute(Now)& "."
MsgBox "The current minute is "& Minute(Now)& "."(par_id3146119.14)

end sub
end sub(par_id3153726.15)


< Prev / Next >